<?

class Model_User extends ORM
{
	protected $_rules = array(
		'name' => array(
			'not_empty' => NULL
		),
	);
	
	public function save_user(array &$array)
	{
		$array = Validate::factory($array)
			->rules('name', $this->_rules['name']);
		
		$status = $array->check();
		
		
		return $status;
	} 
}